package com.whfc.common.obd;

import java.io.Serializable;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2020-10-19 11:41
 */
public class ObdFrameItem implements Serializable {

    /**
     * 编码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 单位
     */
    private String unit;

    /**
     * 值
     */
    private Object value;

    /**
     * 值描述
     */
    private String valueDesc;


    public ObdFrameItem() {
    }

    public ObdFrameItem(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public ObdFrameItem(String code, String name, String unit, Object value) {
        this.code = code;
        this.name = name;
        this.unit = unit;
        this.value = value;
    }

    public ObdFrameItem(String code, String name, Object value, String valueDesc) {
        this.code = code;
        this.name = name;
        this.value = value;
        this.valueDesc = valueDesc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getValueDesc() {
        return valueDesc;
    }

    public void setValueDesc(String valueDesc) {
        this.valueDesc = valueDesc;
    }
}
